package com.yegs.hospital.service;

import com.yegs.hospital.bo.TaskRequest;
import com.yegs.hospital.common.PageVo;
import com.yegs.hospital.vo.Task;
import com.yegs.hospital.vo.WxUser;
import org.springframework.data.domain.PageImpl;

import javax.transaction.Transactional;
import java.util.List;

public interface TaskService {

    @Transactional(rollbackOn = Exception.class)
    void save(Task task);

    PageImpl<Task> list(TaskRequest pageParam);

    Task get();


    Task get(String openId);
    Task getLast(String openId);

    List<Task> findAll(String openId);

    List<Task> findOutTime(String department);


    void finishTask(Long id) throws Exception;

    void delete(Long id) throws Exception;

    public Task getEnd(String openId);
}
